package com.xoa.service.document;

import com.xoa.model.document.DocumentExchangeReceive;
import com.xoa.model.document.DocumentExchangeSet;
import com.xoa.util.ToJson;
import com.xoa.util.page.PageParams;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface DocumentExchangeReceiveService {
    //查看某条流程的分发情况
    public List<DocumentExchangeReceive> selectByRunId(Integer fromRunId);

    //公文下发到单位
    public int insert(DocumentExchangeReceive documentExchangeReceive);

    // 查询公文
    ToJson<DocumentExchangeReceive> query(PageParams pageParams, HttpServletRequest request);

    // 收文
    ToJson<DocumentExchangeReceive> receiveDoc(DocumentExchangeReceive documentExchangeReceive, HttpServletRequest request);

    //公文补发单位获取
    public ToJson reinsertDocumentReceive(String unitType, Integer fromRunId);

    //删除多条数据
    public ToJson delete(String receiveIds);

    //内部公文收回
    public ToJson recoverDoc(HttpServletRequest request);

    //根据主键查询一条数据
    public ToJson queryById(DocumentExchangeReceive documentExchangeReceive);

    ToJson queryByReturn(HttpServletRequest request, String receiveStatus, Integer page, Integer limit, boolean useFlag);
}
